﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListMN.aspx.cs" Inherits="Maticsoft.Web.ListMN" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <link rel="stylesheet" type="text/css" href="Content/infomng-140422.css" />
     <script src="admin/JS/easyui/jquery.min.js"></script>
     <script type="text/javascript">        
         function checks()
         {
             var s="",m="",j="";
             var snums=$('#<%= this.lblssum.ClientID%>').text();
            var mnums=$('#<%= this.lblmsum.ClientID%>').text();
            var jnums=$('#<%= this.lbljsum.ClientID%>').text();
            var sid="",mid="",jid="";
            for(i=0;i<snums;i++)
            {
                id=".s"+i+1+" :radio";
                if($(id).filter(':checked').length<1)
                    s+="第"+(i+1)+"题";
            }
            for(i=0;i<mnums;i++)
            {
                id=".m"+i+1+" :checkbox";
                if($(id).filter(':checked').length<1)
                    m+="第"+(i+1)+"题";
            }
            for(i=0;i<jnums;i++)
            {
                id=".j"+i+1+" :radio";
                if($(id).filter(':checked').length<1)
                    j+="第"+(i+1)+"题";
            }
            if(s!="")
            {
                s="单选题："+s;
                s=s+"\n";
            }
            if(m!="")
            {
                m="多选题："+m;
                m=m+"\n";
            }
            if(j!="")
            {
                j="判断题："+j;
                j=j+"\n";
            }
            if(s!=""||m!=""||j!="")
            {
                if (confirm('以下的题还没有做：\n' + s + m + j+'\n您真的要交卷吗？'))
                    return true;
                else
                    return false;
               
            }
            else
            {return true;}
        }      
       
         </script>
     <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            font-size: 13px;
            font-weight: bold;
            color: #0000FF;
        }
        .topM
        {
        	margin-top:18px;
            text-align: left;
            
        }
    </style>
</head>
<body>
   <form id="form1" runat="server">   
       
       <div class="cBody">
            <div class="cHead">
                <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                    width="1002" height="194">
                    <param name="movie" value="Flash/flash.swf" />
                    <param name="quality" value="high" />
                    <embed src="Flash/flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
                        type="application/x-shockwave-flash" width="1002" height="194"></embed>
                </object>
            </div>
            <div class="cNavigator">
                当前位置：<a href="index.aspx">首页</a> -模拟考试
    
            </div>

            <div class="cMainLevel2">
                <div class="cOnLine">
                    <div>
        <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">单项选择题（每题<asp:Label ID="lblsfen" runat="server"></asp:Label>
                分，共<asp:Label ID="lblssum" runat="server"></asp:Label>
                题）</span></legend>
             <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
            </div>   
            <div style=" text-align:left;">
                <asp:DataList ID="DataList1" runat="server" CssClass="topM" >
                    <ItemTemplate>
                        <table class="style1">
                            <tr>
                                <td style=" font-weight:bold;">
                                    <%#Container.ItemIndex + 1 %>.
                                    <asp:Label ID="lbl_title" runat="server" 
                                        Text='<%# Bind("stitle") %>'></asp:Label>
                                    <asp:Label ID="lbl_singleId" runat="server" Text='<%# Bind("singleId") %>' 
                                        Visible="False"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style=" height:18px;" Class='<%# "s"+ Container.ItemIndex + 1  %>'>
                                    <asp:RadioButton ID="rdoA" runat="server" GroupName="rdo"  Text='<%#  "A："+ Eval("sA") %>' /><br /><br />
                                    <asp:RadioButton ID="rdoB" runat="server" Text='<%#  "B："+ Eval("sB") %>' 
                                        GroupName="rdo"  /><br /><br />
                                    <asp:RadioButton ID="rdoC" runat="server" Text='<%# "C："+ Eval("sC") %>' 
                                        GroupName="rdo"  /><br /><br />
                                    <asp:RadioButton ID="rdoD" runat="server" Text='<%# "D："+ Eval("sD") %>' 
                                        GroupName="rdo" /><br />
                                    <asp:Label ID="lblan" runat="server" Text=""></asp:Label>
                                    <asp:HiddenField ID="hfkey" Value='<%# Eval("skey") %>' runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
                <asp:HiddenField ID="hfid" runat="server" />
            </div>
        </fieldset>
    </div>
        <div>
        <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">多项选择题(每题<asp:Label ID="lblmfen" runat="server"></asp:Label>
                分，共<asp:Label ID="lblmsum" runat="server"></asp:Label>
                分)</span></legend>
                <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
               
            </div>
            <div>
                <asp:DataList ID="DataList2" runat="server" CssClass="topM" >
                    <ItemTemplate>
                        <table class="style1">
                            <tr>
                                <td style=" font-weight:bold;">
                                    <%#Container.ItemIndex + 1 %>.
                                    <asp:Label ID="lbl_title" runat="server" 
                                        Text='<%# Bind("mtitle") %>'></asp:Label>
                                    <asp:Label ID="lbl_mostId" runat="server" Text='<%# Bind("mostId") %>' 
                                        Visible="False"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style=" height:18px;" class='<%# "m"+ Container.ItemIndex + 1  %>'>
                                   <asp:CheckBox ID="cboA" runat="server" Text='<%# "A："+ Eval("mA") %>' /><br /><br />
                                    <asp:CheckBox ID="cboB" runat="server" Text='<%#"B："+ Eval("mB") %>'/><br /><br />
                                    <asp:CheckBox ID="cboC" runat="server" Text='<%#"C："+ Eval("mC") %>'/><br /><br />
                                   <asp:CheckBox ID="cboD" runat="server" Text='<%#"D："+ Eval("mD") %>'/><br />
                                    <asp:Label ID="lblan" runat="server" Text=""></asp:Label>
                                    <asp:HiddenField ID="hfkey" Value='<%# Eval("mkey") %>' runat="server" />
                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
            </div>
        </fieldset>
    </div>
        <div>
        <fieldset style="margin: 10px;">
            <legend class="fole_end">
                <asp:Image ID="Image3" runat="server" ImageUrl="~/Images/fieldset.gif" />
                <span class="style2">判断题（每题<asp:Label ID="lbljfen" runat="server"></asp:Label>
                分，共<asp:Label ID="lbljsum" runat="server"></asp:Label>
                分）</span></legend>
             <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
            </div>
                
            <div style=" text-align:left;">
                <asp:DataList ID="DataList3" runat="server" CssClass="topM" >
                    <ItemTemplate>
                        <table class="style1">
                            <tr>
                                <td style=" font-weight:bold;">
                                    <%#Container.ItemIndex + 1 %>.
                                    <asp:Label ID="lbl_title" runat="server" 
                                        Text='<%# Bind("jtitle") %>'></asp:Label>
                                    <asp:Label ID="lbl_judgeId" runat="server" Text='<%# Bind("judgeId") %>' 
                                        Visible="False"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style=" height:18px;" class='<%# "j"+ Container.ItemIndex + 1  %>'>
                                    <asp:RadioButton ID="rdoYes" runat="server" GroupName="rdo" 
                                        Text="正确" />
                                    ；<asp:RadioButton ID="rdoNo" runat="server" Text="错误" 
                                        GroupName="rdo" /><br />
                                    <asp:Label ID="lblan" runat="server" Text=""></asp:Label>
                                    <asp:HiddenField ID="hfkey" Value='<%# Eval("jkey") %>' runat="server" />

                                </td>
                            </tr>
                            <tr>
                                <td style=" height:18px;">
                                    &nbsp;</td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </asp:DataList>
            </div>
            
        </fieldset>
        
    <asp:HiddenField ID="Label2" runat="server" />
    </div>
        <div style=" text-align:center; margin-top:15px; margin-bottom:15px;">
             <asp:Button ID="btnOK" runat="server" Text="交卷" OnClick="btnOK_Click" OnClientClick="return checks()" />
             <br />
             <br />
            </div>
                </div>

            </div>

            <div class="cCopyright">
                <div class="pContent">
                    <%-- 主办：中共山东省纪律检查委员会 山东省监察厅 &nbsp;&nbsp;&nbsp;&nbsp;
        技术支持：华信<a href="http://www.qzsoft.cn" target="_blank" class="pQzLogo"></a>--%>
                </div>
            </div>
        </div>     
        
       
    </form>
</body>
</html>
